package linwen.wang.config;

import com.baomidou.mybatisplus.core.config.GlobalConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MybatisPlusConfig {
 /*
  * 分页插件，自动识别数据库类型
  * 多租户，请参考官网【插件扩展】
  */

 @Bean
 public GlobalConfig globalConfig() {
  GlobalConfig globalConfig = new GlobalConfig();
  globalConfig.setMetaObjectHandler(new MetaHandler());
  return globalConfig;
 }
}
